package com.lhs.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lhs.entity.user.User_point;
import com.lhs.entity.user.User_point_log;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface User_PointMapper extends BaseMapper<User_point> {

    @Select("select user_id,exp,current_point,update_time from user_point where user_id = #{userId}")
    User_point selectByUserId(Long userId);

    @Select("select user_id,change_type,change_point,biz_type,biz_id,create_time from user_point_log where user_id = #{userId}")
    User_point_log selectLogByUserId(Long userId);
}
